import 'package:fish_redux/fish_redux.dart';
import 'package:kunlun_gas/PublicSource/utils/xa_ble_manager/ble_model.dart';

import '../../../../app_files.dart';
import '../state.dart';

class XABleSaveViewState implements Cloneable<XABleSaveViewState> {
  OrderListItemModel model;
  ReadCardContentModel cardContent;
  String cardMemo;
  String uuid = '';
  TextEditingController numberController = TextEditingController();
  bool isNetWork = false;

  @override
  XABleSaveViewState clone() {
    return XABleSaveViewState()
      ..model = model
      ..isNetWork = isNetWork
      ..cardContent = cardContent
      ..cardMemo = cardMemo
      ..numberController = numberController
      ..uuid = uuid;
  }
}

XABleSaveViewState initState(Map<String, dynamic> args) {
  return XABleSaveViewState()
    ..model = args['model']
    ..isNetWork = args['isNetWork'] ?? false;
}
